package p_myaop;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

@Component    //加入容器
public class UserDao implements IUserDao{
	@Resource
	private Aop aop;
  @Override
public void save() {
	aop.begin(); 
    System.out.println("----已经保存数据了----");
    aop.commit();
}
}
